﻿@model IEnumerable<ChampionFramework.Models.Cartao>
@{
	ViewBag.Title = "Index";
}
<h2>
	Index</h2>
<p>
	@Html.ActionLink("Create New", "Create")
</p>
<table>
	<tr>
		<th>
			@Html.DisplayNameFor(model => model.Tipo)
		</th>
		<th>
			@Html.DisplayNameFor(model => model.Descricao)
		</th>
		<th>
			@Html.DisplayNameFor(model => model.Minutos)
		</th>
		<th>
			@Html.DisplayNameFor(model => model.Segundos)
		</th>
		<th>
			@Html.DisplayNameFor(model => model.Jogador.Nome)
		</th>
		<th>
		</th>
	</tr>
	@foreach (var item in Model)
 {
		<tr>
			<td>
				@Html.DisplayFor(modelItem => item.Tipo)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.Descricao)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.Minutos)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.Segundos)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.Jogador.Nome)
			</td>
			<td>
				@Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
				@Html.ActionLink("Details", "Details", new { id = item.Id }) |
				@Html.ActionLink("Delete", "Delete", new { id = item.Id })
			</td>
		</tr>
 }
</table>